package cn.tedu._05mvcboot03.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserLonginDTO {
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{1,7}|[a-zA-Z]{1,14}$", message = "用户名不能超过7个汉字或14个字符")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
//    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z]).{9,}$",message = "密码需要包含数字，字母,且9位以上")
    @ApiModelProperty(value = "密码", required = true)
    private String password;



}
